.container {
  --height: 88px;
  --paddingTop: 44px;

  position: relative;
  width: 375px;
  margin: 20px auto;
  border-radius: 5px;
  box-shadow: 4px 0 10px rgba(0, 21, 41, 0.08), -4px 0 10px rgba(0, 21, 41, 0.08),
    0 -4px 10px rgba(0, 21, 41, 0.08), 0 4px 10px rgba(0, 21, 41, 0.08);

  &::-webkit-scrollbar {
    display: none;
  }

  &::after,
  &::before {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 10;
    display: block;
    background-repeat: no-repeat;
    content: '';
  }
  &::after {
    top: 0;
    height: 44px;
    background-image: url('./images/header.png');
  }
  &::before {
    bottom: 0;
    height: 15px;
    background-image: url('./images/bottom.png');
  }
}

.container-bg {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  inset: 0;
  .bg-title {
    box-sizing: border-box;
    height: var(--height);
    padding-top: var(--paddingTop);
    overflow: hidden;
    line-height: var(--paddingTop);
    text-align: center;
    transform-origin: center;
    transition: all 0.3s;
  }
  .bg-sharp {
    --height: 88px;

    height: calc(100% - var(--height));
    transition: all 0.3s;
    &.arc {
      --color: transparent;

      position: relative;
      overflow: hidden;
      &::before {
        position: absolute;
        top: -48px;
        left: 50%;
        z-index: 0;
        width: 120%;
        height: 100px;
        background-color: var(--color);
        border-radius: 50%;
        transform: translateX(-50%);
        content: '';
      }
    }
    &.roundedEdges {
      --color: transparent;

      position: relative;
      overflow: hidden;
      &::before {
        position: absolute;
        top: 80px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        background-color: var(--color);
        border-radius: 15px 15px 0 0;
        content: '';
      }
    }
    &.sink {
      --color: transparent;

      position: relative;
      overflow: hidden;
      &::before {
        position: absolute;
        top: 100px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        background-color: var(--color);
        content: '';
      }
    }
  }
}

.container-preview {
  position: relative;
  z-index: 2;
  padding-top: var(--height);
}
